﻿<%@ Page Title="About Us" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Rapportera_resa.aspx.cs" Inherits="Resehantering.About" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent" EnableViewState="True">
    <style type="text/css">
        .style2 td
        {
            border-bottom: 1px dotted #D2D3F8;
            padding: 2px 0px 2px 0px;
        }
        #TextArea1
        {
            height: 50px;
            width: 322px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent" ViewStateMode="Inherit" EnableViewState="True">
<h1>Rapportera Resa</h1>

<div class="leftbox">
<table border="0" width="100%" class="style2">
    <tr>
        <td style="width:151px;"><span class="textrubrik">Jag ska resa inom:</span></td>
        <td><asp:DropDownList id="ddlCountry" runat="server">

                <asp:ListItem Value="AF">Afghanistan</asp:ListItem>
                <asp:ListItem Value="AR">Argentina</asp:ListItem>
                <asp:ListItem Value="AU">Australia</asp:ListItem>
                <asp:ListItem Value="BE">Belgium</asp:ListItem>
                <asp:ListItem Value="BG">Bulgaria</asp:ListItem>
                <asp:ListItem Value="CA">Canada</asp:ListItem>
                <asp:ListItem Value="CN">China</asp:ListItem>
                <asp:ListItem Value="DK">Denmark</asp:ListItem>
                <asp:ListItem Value="EG">Egypt</asp:ListItem>
                <asp:ListItem Value="FI">Finland</asp:ListItem>
                <asp:ListItem Value="FR">France</asp:ListItem>
                <asp:ListItem Value="DE">Germany</asp:ListItem>
                <asp:ListItem Value="IN">India</asp:ListItem>
                <asp:ListItem Value="IE">Ireland</asp:ListItem>
                <asp:ListItem Value="IT">Italy</asp:ListItem>
                <asp:ListItem Value="JP">Japan</asp:ListItem>
                <asp:ListItem Value="NZ">New Zealand</asp:ListItem>
                <asp:ListItem Value="NO">Norway</asp:ListItem>
                <asp:ListItem Value="PT">Portugal</asp:ListItem>
                <asp:ListItem Value="RU">Russian Federation</asp:ListItem>
                <asp:ListItem Value="SE" Selected="True">Sweden</asp:ListItem>
                <asp:ListItem Value="CH">Switzerland</asp:ListItem>
                <asp:ListItem Value="TR">Turkey</asp:ListItem>
                <asp:ListItem Value="GB">United Kingdom</asp:ListItem>
                <asp:ListItem Value="US">United States</asp:ListItem>

               
                </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td style="width:151px;"><span class="textrubrik">Mellan datum:</span></td>
        <td valign="bottom">
            <div style="float:left; margin-right:5px; background-color:White;">
                <asp:Calendar ID="Calendar1" runat="server" onselectionchanged="Semesterdagar" 
                    BackColor="White" BorderColor="#999999" CellPadding="4" 
                    DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" 
                    Height="180px" Width="180px">
                    <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                    <NextPrevStyle VerticalAlign="Bottom" />
                    <OtherMonthDayStyle ForeColor="#808080" />
                    <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                    <SelectorStyle BackColor="#CCCCCC" />
                    <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                    <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <WeekendDayStyle BackColor="#FFFFCC" />
                </asp:Calendar></div>
            <div style="float:left; margin-right:5px;"> &lt;---&gt; </div>
            <div style="float:left; background-color:White;"><asp:Calendar ID="Calendar2" 
                    runat="server" onselectionchanged="Semesterdagar" BackColor="White" 
                    BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" 
                    Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" 
                    Width="180px">
                <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                <NextPrevStyle VerticalAlign="Bottom" />
                <OtherMonthDayStyle ForeColor="#808080" />
                <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                <SelectorStyle BackColor="#CCCCCC" />
                <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                <WeekendDayStyle BackColor="#FFFFCC" />
                </asp:Calendar></div>
        </td>
    </tr>
    <tr>
        <td style="width:151px;"><span class="textrubrik">Antal semesterdagar:</span></td>
        <td>
            <asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem Value="0"></asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td style="width:151px;"><span class="textrubrik">Antal måltider:</span></td>
        <td>
            Frukost:
            <asp:DropDownList ID="ddlFrukost" runat="server">
            <asp:ListItem Value="0"></asp:ListItem>
            </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Lunch:
            <asp:DropDownList ID="ddlLunch" runat="server">
            <asp:ListItem Value="0"></asp:ListItem>
            </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp; Middag:
            <asp:DropDownList ID="ddlMiddag" runat="server">
            <asp:ListItem Value="0"></asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td style="width:151px;"><span class="textrubrik">Reseförskott:</span></td>
        <td>
            <asp:DropDownList ID="ddlReseforskott" runat="server">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td style="width:151px;"><span class="textrubrik">Resan startar i Sverige:</span></td>
        <td>
            <asp:CheckBox ID="CheckBox1" runat="server" />
        </td>
    </tr>
    <tr>
        <td style="width:151px;"><span class="textrubrik">Anledning:</span></td>
        <td>
            <asp:TextBox ID="TextBox5" runat="server" Height="58px" TextMode="MultiLine" 
                Width="305px"></asp:TextBox>
        </td>
    </tr>
</table>
</div>
<div class="rightbox">
<span class="textrubrik">Tidigare resor:</span>
<br />
<br />
    <asp:ListBox ID="ListBoxResor" BackColor="#D2D3F8" runat="server" Width="100%" 
        Height="120px" Style="font-size:10px;" ViewStateMode="Enabled">
    
    </asp:ListBox>
    <br />
    <br />
    <asp:Button ID="btn_showResa" runat="server" Text="Visa" 
        onclick="btn_showResa_Click" />
        
        &nbsp;&nbsp;&nbsp;<asp:Button ID="btn_Rensa" runat="server" Text="Rensa" 
        onclick="btn_Rensa_Click" />


        <br />


        <br />


        <asp:Button ID="btnSkrivUtRapport" runat="server" Text="Skriv ut senaste" 
            onclick="skrivUtRapport_Click" Height="30px" Width="124px"/> 
        &nbsp;


    <br />


</div>

<div class="leftbox">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
       <Triggers>
                <asp:AsyncPostBackTrigger controlid="Button1" eventname="Click" />
            </Triggers>
                <ContentTemplate>
<h2>Utlägg</h2>
<table border="0" width="100%" class="style2">
    <tr>
        <td style="width:151px;"><span class="textrubrik">Färdsätt:</span></td>
        <td>Annat 
            <asp:RadioButton ID="RadioButton2" runat="server" GroupName="fardsatt" 
                oncheckedchanged="RadioButton2_CheckedChanged" AutoPostBack="true" /> Bil <asp:RadioButton ID="RadioButton1" runat="server" GroupName="fardsatt" 
                oncheckedchanged="RadioButton1_CheckedChanged" AutoPostBack="true"/>  Mil 
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
            
            </td>
    </tr>
    <tr>
        <td style="width:151px;"><span class="textrubrik">Utgifter:</span></td>
        <td>Vara <asp:TextBox ID="TextBox2" runat="server" Width="143px"></asp:TextBox> Pris 
            <asp:TextBox ID="TextBox3" runat="server" Width="94px"></asp:TextBox><br />
        Moms <asp:TextBox ID="TextBox4" runat="server" Width="74px"></asp:TextBox> Kvitto finns <asp:CheckBox ID="CheckBox2" runat="server" />
        &nbsp;<asp:Button ID="Button1" runat="server" Text="Spara" style="vertical-align:middle;" onclick="spara_Click" EnableViewState="True" ViewStateMode="Inherit" UseSubmitBehavior="True" AutoPostBack="true" />
        </td>
    </tr>
    
    <tr>
        <td style="width:151px;"><span class="textrubrik">Registrerade utlägg:</span></td>
        <td>
            <asp:ListBox ID="ListBox1" runat="server" Width="323px"></asp:ListBox>
        </td>
    </tr>
    </ContentTemplate>
     </asp:UpdatePanel>
</table>

</div>
    <div style="width:400px; height:30px; float:right; text-align:right;">
        <asp:Button ID="btn_rapportera" runat="server" Text="Skicka rapport" 
            onclick="btn_rapportera_Click" /></div>
</asp:Content>
